<!--
 * @Author: tanlijun 2060803224@qq.com
 * @Date: 2022-11-13 19:24:44
 * @LastEditors: tanlijun 2060803224@qq.com
 * @LastEditTime: 2022-11-13 19:29:50
 * @FilePath: \js基础\js基础第二天\作业\if-else多分支语句练习.html
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  

  <script>
    let score = +prompt('请输入分数：')
    if (score >= 90){
      alert('A')
    } else if (score >= 80){
      alert('B')
    } else if (score >= 70){
      alert('C')
    } else if (score >= 60){
      alert('D')
    } else {
      alert('E')
    }
  </script>
</body>
</html>